package com.car.ui;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.widget.ImageView;

import com.car.framework.FrameActivity;
import com.car.framework.ImageListener;

public class TestActivity extends FrameActivity {
	ImageView image = null;
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.test);
		
		image = (ImageView)this.findViewById(R.id.testimageview);
		
		this.GetImage("http://ww4.sinaimg.cn/bmiddle/4c001b17jw1dsiqskxsbzj.jpg", 
					  new ImageListener(){

			@Override
			public void ImageChange(int id, Bitmap bmp) {
				if(bmp != null){
					TestActivity.this.image.setImageBitmap(bmp);
				}
			}
			
		});
	    
//		image.setImageDrawable(drawable);
	}
}
